/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package otros;

import java.awt.Image;
import java.awt.Toolkit;
import java.util.Vector;

/**
 *
 * @author FERRETERIA
 */
public class ImagenTemporizador {
    
    private Vector<Image> vImg = new Vector<Image>(); 
    
    public ImagenTemporizador(String url, int num) {
        Image im;
        for (int i = 1; i <= num; i++ )
            vImg.add(Toolkit.getDefaultToolkit().getImage(url.replace("#", ""+i)));
    }
    
    public Image getImage(int pos) {
        return vImg.get(pos);
    }
    
}
